3.5.13 \(\int \frac {(a+b x^2)^p}{x (d+e x)} \, dx\) [413]

Optimal. Leaf size=176 \[ -\frac {e x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} F_1\left (\frac {1}{2};-p,1;\frac {3}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d^2}+\frac {e^2 \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;\frac {e^2 \left (a+b x^2\right )}{b d^2+a e^2}\right )}{2 d \left (b d^2+a e^2\right ) (1+p)}-\frac {\left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;1+\frac {b x^2}{a}\right )}{2 a d (1+p)} \]

[Out]

-e*x*(b*x^2+a)^p*AppellF1(1/2,1,-p,3/2,e^2*x^2/d^2,-b*x^2/a)/d^2/((1+b*x^2/a)^p)+1/2*e^2*(b*x^2+a)^(1+p)*hyper
geom([1, 1+p],[2+p],e^2*(b*x^2+a)/(a*e^2+b*d^2))/d/(a*e^2+b*d^2)/(1+p)-1/2*(b*x^2+a)^(1+p)*hypergeom([1, 1+p],
[2+p],1+b*x^2/a)/a/d/(1+p)

________________________________________________________________________________________

Rubi [A]
time = 0.10, antiderivative size = 176, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.350, Rules used = {973, 457, 88, 67, 70, 441, 440} \begin {gather*} -\frac {e x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} F_1\left (\frac {1}{2};-p,1;\frac {3}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d^2}+\frac {e^2 \left (a+b x^2\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac {e^2 \left (b x^2+a\right )}{b d^2+a e^2}\right )}{2 d (p+1) \left (a e^2+b d^2\right )}-\frac {\left (a+b x^2\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac {b x^2}{a}+1\right )}{2 a d (p+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x^2)^p/(x*(d + e*x)),x]

[Out]

-((e*x*(a + b*x^2)^p*AppellF1[1/2, -p, 1, 3/2, -((b*x^2)/a), (e^2*x^2)/d^2])/(d^2*(1 + (b*x^2)/a)^p)) + (e^2*(
a + b*x^2)^(1 + p)*Hypergeometric2F1[1, 1 + p, 2 + p, (e^2*(a + b*x^2))/(b*d^2 + a*e^2)])/(2*d*(b*d^2 + a*e^2)
*(1 + p)) - ((a + b*x^2)^(1 + p)*Hypergeometric2F1[1, 1 + p, 2 + p, 1 + (b*x^2)/a])/(2*a*d*(1 + p))

Rule 67

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((c + d*x)^(n + 1)/(d*(n + 1)*(-d/(b*c))^m))
*Hypergeometric2F1[-m, n + 1, n + 2, 1 + d*(x/c)], x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[n] && (Intege
rQ[m] || GtQ[-d/(b*c), 0])

Rule 70

Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(b*c - a*d)^n*((a + b*x)^(m + 1)/(b^(
n + 1)*(m + 1)))*Hypergeometric2F1[-n, m + 1, m + 2, (-d)*((a + b*x)/(b*c - a*d))], x] /; FreeQ[{a, b, c, d, m
}, x] && NeQ[b*c - a*d, 0] &&  !IntegerQ[m] && IntegerQ[n]

Rule 88

Int[((e_.) + (f_.)*(x_))^(p_)/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), In
t[(e + f*x)^p/(a + b*x), x], x] - Dist[d/(b*c - a*d), Int[(e + f*x)^p/(c + d*x), x], x] /; FreeQ[{a, b, c, d,
e, f, p}, x] &&  !IntegerQ[p]

Rule 440

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[a^p*c^q*x*AppellF1[1/n, -p,
 -q, 1 + 1/n, (-b)*(x^n/a), (-d)*(x^n/c)], x] /; FreeQ[{a, b, c, d, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[n
, -1] && (IntegerQ[p] || GtQ[a, 0]) && (IntegerQ[q] || GtQ[c, 0])

Rule 441

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Dist[a^IntPart[p]*((a + b*x^n)^F
racPart[p]/(1 + b*(x^n/a))^FracPart[p]), Int[(1 + b*(x^n/a))^p*(c + d*x^n)^q, x], x] /; FreeQ[{a, b, c, d, n,
p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[n, -1] &&  !(IntegerQ[p] || GtQ[a, 0])

Rule 457

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Dist[1/n, Subst[Int
[x^(Simplify[(m + 1)/n] - 1)*(a + b*x)^p*(c + d*x)^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] &&
 NeQ[b*c - a*d, 0] && IntegerQ[Simplify[(m + 1)/n]]

Rule 973

Int[(((g_.)*(x_))^(n_.)*((a_) + (c_.)*(x_)^2)^(p_))/((d_) + (e_.)*(x_)), x_Symbol] :> Dist[d*((g*x)^n/x^n), In
t[(x^n*(a + c*x^2)^p)/(d^2 - e^2*x^2), x], x] - Dist[e*((g*x)^n/x^n), Int[(x^(n + 1)*(a + c*x^2)^p)/(d^2 - e^2
*x^2), x], x] /; FreeQ[{a, c, d, e, g, n, p}, x] && NeQ[c*d^2 + a*e^2, 0] &&  !IntegerQ[p] &&  !IntegersQ[n, 2
*p]

Rubi steps

\begin {align*} \int \frac {\left (a+b x^2\right )^p}{x (d+e x)} \, dx &=d \int \frac {\left (a+b x^2\right )^p}{x \left (d^2-e^2 x^2\right )} \, dx-e \int \frac {\left (a+b x^2\right )^p}{d^2-e^2 x^2} \, dx\\ &=\frac {1}{2} d \text {Subst}\left (\int \frac {(a+b x)^p}{x \left (d^2-e^2 x\right )} \, dx,x,x^2\right )-\left (e \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p}\right ) \int \frac {\left (1+\frac {b x^2}{a}\right )^p}{d^2-e^2 x^2} \, dx\\ &=-\frac {e x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} F_1\left (\frac {1}{2};-p,1;\frac {3}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d^2}+\frac {\text {Subst}\left (\int \frac {(a+b x)^p}{x} \, dx,x,x^2\right )}{2 d}+\frac {e^2 \text {Subst}\left (\int \frac {(a+b x)^p}{d^2-e^2 x} \, dx,x,x^2\right )}{2 d}\\ &=-\frac {e x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} F_1\left (\frac {1}{2};-p,1;\frac {3}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d^2}+\frac {e^2 \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;\frac {e^2 \left (a+b x^2\right )}{b d^2+a e^2}\right )}{2 d \left (b d^2+a e^2\right ) (1+p)}-\frac {\left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;1+\frac {b x^2}{a}\right )}{2 a d (1+p)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.25, size = 170, normalized size = 0.97 \begin {gather*} \frac {\left (a+b x^2\right )^p \left (-\left (\frac {e \left (-\sqrt {-\frac {a}{b}}+x\right )}{d+e x}\right )^{-p} \left (\frac {e \left (\sqrt {-\frac {a}{b}}+x\right )}{d+e x}\right )^{-p} F_1\left (-2 p;-p,-p;1-2 p;\frac {d-\sqrt {-\frac {a}{b}} e}{d+e x},\frac {d+\sqrt {-\frac {a}{b}} e}{d+e x}\right )+\left (1+\frac {a}{b x^2}\right )^{-p} \, _2F_1\left (-p,-p;1-p;-\frac {a}{b x^2}\right )\right )}{2 d p} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x^2)^p/(x*(d + e*x)),x]

[Out]

((a + b*x^2)^p*(-(AppellF1[-2*p, -p, -p, 1 - 2*p, (d - Sqrt[-(a/b)]*e)/(d + e*x), (d + Sqrt[-(a/b)]*e)/(d + e*
x)]/(((e*(-Sqrt[-(a/b)] + x))/(d + e*x))^p*((e*(Sqrt[-(a/b)] + x))/(d + e*x))^p)) + Hypergeometric2F1[-p, -p,
1 - p, -(a/(b*x^2))]/(1 + a/(b*x^2))^p))/(2*d*p)

________________________________________________________________________________________

Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {\left (b \,x^{2}+a \right )^{p}}{x \left (e x +d \right )}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x^2+a)^p/x/(e*x+d),x)

[Out]

int((b*x^2+a)^p/x/(e*x+d),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^p/x/(e*x+d),x, algorithm="maxima")

[Out]

integrate((b*x^2 + a)^p/((x*e + d)*x), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^p/x/(e*x+d),x, algorithm="fricas")

[Out]

integral((b*x^2 + a)^p/(x^2*e + d*x), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b x^{2}\right )^{p}}{x \left (d + e x\right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x**2+a)**p/x/(e*x+d),x)

[Out]

Integral((a + b*x**2)**p/(x*(d + e*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^p/x/(e*x+d),x, algorithm="giac")

[Out]

integrate((b*x^2 + a)^p/((x*e + d)*x), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (b\,x^2+a\right )}^p}{x\,\left (d+e\,x\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*x^2)^p/(x*(d + e*x)),x)

[Out]

int((a + b*x^2)^p/(x*(d + e*x)), x)

________________________________________________________________________________________